package com.jm.api.advance;

import com.jm.api.util.R;
import com.jm.api.vo.ResultVO;
import com.jm.common.exception.ApiException;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;

/**
 * @Author:JianWu
 * @Date: 2025/1/10  17:34
 */
@RestControllerAdvice
public class AipExceptionHandler {

    @ExceptionHandler(ApiException.class)
    public ResultVO apiException(ApiException e){
        return R.error(e);
    }
}
